DataSource for Entity Framework in WPF
C1.Data Namespace / ClientView<T> Class / ProgressiveLoading Method / ProgressiveLoading<TKey>(Expression<Func<T,TKey>>,Int32) Method
The type of the sort key.
A function specifying a sort key.
The size of the page.

In This Topic
    ProgressiveLoading<TKey>(Expression<Func<T,TKey>>,Int32) Method
    In This Topic
    Specifies that the client view loading is performed not in a single trip to the server but in multiple batches, each loading a page of a limited size so the user sees the result and can interact with it before all pages are loaded.
    Syntax
    'Declaration
     
    Public Overloads Function ProgressiveLoading(Of TKey)( _
       ByVal sortKeySelector As Expression(Of Func(Of T,TKey)), _
       ByVal loadSize As Integer _
    ) As ProgressiveView(Of T)
    public ProgressiveView<T> ProgressiveLoading<TKey>( 
       Expression<Func<T,TKey>> sortKeySelector,
       int loadSize
    )

    Parameters

    sortKeySelector
    A function specifying a sort key.
    loadSize
    The size of the page.

    Type Parameters

    TKey
    The type of the sort key.

    Return Value

    A client view that loads the same entities as the source view but does it progressively.
    Remarks
    Sorting is required, loading entities progressively is impossible without sort.
    See Also